<template>
  <a-drawer
    :visible="this.visible"
    width="95%"
    @close="onClose">
    <slot :name="this.fileNames[this.file]"></slot>
  </a-drawer>
</template>

<script>
  export default {
    name: "steps",
    props: ['visible', 'fileNames', 'file'],
    methods: {
      /*关闭抽屉*/
      onClose() {
        this.$emit('closeDrawer', false)
      }
    }
  }
</script>

<style scoped>

</style>
